#include <func.h>

void sigfunc(int signum)
{
    printf("before sleep,sig %d is coming\n",signum);
    sleep(3);
    printf("after sleep,sig %d is coming\n",signum);
    // puts("");
}
int main()
{   //提前设定好二,三号信号的行为
    signal(SIGINT,sigfunc);
    signal(SIGQUIT,sigfunc);
    while(1);
    return 0;
}